package com.workflowengine.workflowbase.bizCommand;


import com.workflowengine.config.WorkFlowContent;
import com.workflowengine.workflowbase.AbstractWorkFlowCommand;
import com.workflowengine.workflowbase.WorkFlowCommand;
import lombok.extern.slf4j.Slf4j;

/**
 * @Package: com.workflowengine.workflowbase.biz
 * @ClassName: StartCommand
 * @Author: h2cloud
 * @CreateTime: 2024/7/15 11:26 下午
 * @Description:
 */
@WorkFlowCommand(workType = 1, nodeType = 1)
@Slf4j
public class BusinessCommand extends AbstractWorkFlowCommand {

	@Override
	public void doAction(WorkFlowContent workFlowContent) {
		log.info("BusinessCommand doAction");
	}


	public void doBefore(WorkFlowContent workFlowContent) {
		log.info("BusinessCommand doBefore");
	}

	public void doAfter(WorkFlowContent workFlowContent) {
		log.info("BusinessCommand doAfter");
	}

	public boolean needCreateRecord(WorkFlowContent workFlowContent) {
		return true;
	}

	public boolean needCreateTodo(WorkFlowContent workFlowContent) {
		return true;
	}
}
